package com.example.reflection.config;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

public class WriteFile {
    private static final String FILEPATH = "src/main/resources/out.txt";

    public static void write(StringBuffer sBuffer) throws Exception {
        File file = new File(FILEPATH);
        BufferedWriter bw = new BufferedWriter(new FileWriter(file));

        bw.write(sBuffer.toString());
        bw.close();
    }
}
